
from app import app
from flask_script import Manager
from flask_migrate import Migrate,MigrateCommand
from models.model import db


# 创建命令行：
manage = Manager(app)

# 生成迁移文件：
migrate = Migrate(app,db)

# 添加命令行
manage.add_command('db',MigrateCommand)

if __name__ == '__main__':
    manage.run()





